package cn.base.web.support.user.service;

import cn.base.web.cahe.DefaultCacheService;
import cn.base.web.support.user.entity.UserAuth;
import cn.rengy.isql.DbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 统一用户
 * @author rengy
 *
 */
@Service
public class UnionUserService {
	
	@Autowired(required = false)
	private DbService dbService;
	@Autowired
	private DefaultCacheService cacheService;
	
	public UserAuth getUnionUserByAuthId(Long authId){
		//return cacheService.getCache("userAuthCache", authId, new Callable<UserAuth>() {
	       // @Override
	       // public UserAuth call() throws Exception {
				return dbService.queryForBean("select_get_user_auth_rel", UserAuth.class, authId);
	        //}
	    //});
	}
	
	
	
}
